const defaultSettings = require('@/settings.js')

export default (_self) => {
  return {
    editBtn: true,
    delBtn: true,
    addBtn: true,
    labelWidth: 140,
    index: true,
    indexLabel: '序号',
    align: 'center',
    headerAlign: 'center',
    border: true,
    dialogWidth: '50%',
    stripe: false,
    searchShow: false,
    searchShowBtn: false,
    size: 'mini',
    // excelBtn: true,
    // selection: true,
    searchMenuSpan: 4,
    props: {
      label: 'label',
      value: 'value'
    },
    column: [
      {
        prop: "",
        label: "",
        rules: [
          {
            required: true,
            message: "请输入",
            trigger: "blur"
          }
        ]
      },
      {
        label: "添加时间",
        prop: "add_time",
        searchRange:true,
        type:'datetime',
        addDisplay:false,
        editDisplay:false,
        display:false,
        rules: [
          {
            required: true,
            message: "请输入",
            trigger: "blur"
          }
        ]
      },
      {
        label: "是否启用",
        prop: "state",
        search:true,
        display:false,
        type:'select',
        dicData:[
          {
            value:1,
            label:'启用'
          },
          {
            value:2,
            label:'禁用'
          }
        ],
        rules: [
          {
            required: true,
            message: "请输入",
            trigger: "blur"
          }
        ]
      }
    ]
  }
}
